<%@ page language="java" import="java.util.*,org.jasig.cas.client.authentication.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
//从单点登录中拿到警号
String code = request.getRemoteUser();
//以下是从单点登录中拿到用户更多信息，包含身份证号
 AttributePrincipal principal =(AttributePrincipal) request.getUserPrincipal();
 Map m = principal.getAttributes();
 String idcard = m.get("idcard").toString();
 System.out.println(idcard+".................");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>${title }</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">

//进入后台程序  业务系统自行处理
alert('警号='+'<%=code%>'+'；身份证号='+'<%=idcard%>');
</script>
  </head>
  
  <body>
  </body>
</html>
